package com.util;

import java.util.List;

import com.pojo.Department;
import com.pojo.Info;
import com.pojo.Permission;
import com.pojo.Role;
import com.pojo.UrlFilter;
import com.pojo.User;

//返回消息的json转换类
public class Message {
	private int groups;
	private String message;
	private List<User> user;
	private List<Role> role;
	private List<Permission> permission;
	private List<UrlFilter> urlFilter;
	private List<Info> info;
	private List<Department> department;

	public Message() {
	}

	public Message(String message) {
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public List<User> getUser() {
		return user;
	}

	public void setUser(List<User> user) {
		this.user = user;
	}

	public List<Role> getRole() {
		return role;
	}

	public void setRole(List<Role> role) {
		this.role = role;
	}

	public List<Permission> getPermission() {
		return permission;
	}

	public void setPermission(List<Permission> permission) {
		this.permission = permission;
	}

	public int getGroups() {
		return groups;
	}

	public void setGroups(int groups) {
		this.groups = groups;
	}

	public List<UrlFilter> getUrlFilter() {
		return urlFilter;
	}

	public void setUrlFilter(List<UrlFilter> urlFilter) {
		this.urlFilter = urlFilter;
	}

	public List<Info> getInfo() {
		return info;
	}

	public void setInfo(List<Info> info) {
		this.info = info;
	}

	public List<Department> getDepartment() {
		return department;
	}

	public void setDepartment(List<Department> department) {
		this.department = department;
	}

	@Override
	public String toString() {
		return "Message [groups=" + groups + ", message=" + message + ", user=" + user + ", role=" + role
				+ ", permission=" + permission + ", urlFilter=" + urlFilter + ", info=" + info + ", department="
				+ department + "]";
	}

}
